<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function Person(){
				this.nation = "汉族";
				this.skinColor = "黄色";
			}
			Person.prototype.getNation=function(){
				return this.nantion;
			}
			Person.prototype.getSkinColor=function(){
				return this.skinColor;
			}
			function Woman(){
				this.sex = "男";
			}
			//继承
			Woman.prototype = new Person();
			Woman.prototype.getSex=function(){
				return this.sex;
			}
			var woman1 = new Woman();
			alert("民族：" + woman1.getNation() +"\n" + "肤色：" + woman1.getSkinColor() + "\n" + "性别：" + woman1.getSex() )
		</script>
	</body>
</html>
